Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CASE WHEN clause in AbstractReportRepository for PostgreSQL compatibility #24

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

curler7
Copy link
Contributor

@curler7 curler7 commented Nov 1, 2024

Summary

This PR updates the CASE WHEN clause in the AbstractReportRepository to ensure compatibility with PostgreSQL.

Changes

The following change was made:

  • Replaced tax_adjustment.neutral = 1 with tax_adjustment.neutral = true, addressing PostgreSQL's handling of boolean expressions and ensuring compatibility across both PostgreSQL and MySQL databases.

Rationale

This fix prevents errors related to mismatched types during query execution in PostgreSQL, such as operator does not exist: boolean = integer.

Fixes #23

@maximehuran
Copy link
Member

Hi @curler7

Can you rebase your pull request ?

@maximehuran maximehuran self-requested a review January 23, 2025 18:46
@maximehuran maximehuran removed their request for review January 24, 2025 08:49
@curler7
Copy link
Contributor Author

curler7 commented Jan 31, 2025

Check!

@maximehuran maximehuran self-requested a review January 31, 2025 08:20
Copy link
Member

@maximehuran maximehuran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why you have 4 commits in the PR, you might have only one for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for postgresql
3 participants